import axios from './axios.js';

// axios  $ajax  request  $http  
// 放置的各种请求接口
export function getFenLei (category_id) {
  return axios.$http({
    url: "https://api.ymduo.com/category/categoryList",
    method: "post",
    data: { category_id: category_id }
  })
}
export function indexPC (data) {
  return axios.$http({
    url: "https://api.ymduo.com/Home/IndexSep/indexPC",
    method: "post",
    data: data
  })
}


// async function say () {
//   await getFenLei(0).then(res => {
//     console.log(res)
//   })
//   await indexPC().then(res => {
//     console.log(res)
//   })
//   console.log("成功")
// }
// say()